// Greeter.js
/*module.exports = function() {
    var greet = document.createElement('div');
    greet.textContent = "Hi there and greetings!";
    return greet;
};*/

/*var config = require('./config.json');

module.exports = function() {
    var greet = document.createElement('div');
    greet.textContent = config.greetText;
    return greet;
};*/

//Greeter,js
//import React, {Component} from 'react'
//import config from './config.json';

var React = require("react");
var config = require("./config.json");
var styles = require("./Greeter.css");

class Greeter extends React.Component{
    render() {
        return (
            <div className={styles.root}>
                {config.greetText}
            </div>
        );
    }
}
module.exports = Greeter;
//export default Greeter